package com.yfp.tissue.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.common.core.domain.R;
import com.yfp.tissue.domain.entity.PositionSharing;
import com.yfp.tissue.service.PositionSharingService;
import com.yfp.tissue.mapper.PositionSharingMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author admin
* @description 针对表【position_sharing(点位分成表)】的数据库操作Service实现
* @createDate 2024-06-13 10:54:46
*/
@Service
public class PositionSharingServiceImpl extends ServiceImpl<PositionSharingMapper, PositionSharing> implements PositionSharingService{

    @Resource
    private PositionSharingMapper positionSharingMapper;

    /**
     * 批量插入
     * @param positionSharings
     */
    @Override
    public void insertAll(List<PositionSharing> positionSharings) {
        positionSharingMapper.insertAll(positionSharings);
    }

    @Override
    public void delByPositionId(String positionId) {
        positionSharingMapper.delByPositionId(positionId);
    }

    @Override
    public List<PositionSharing> findByPositionId(String positionId) {
        return positionSharingMapper.findByPositionId(positionId);
    }

    @Override
    public List<PositionSharing> getPositionSharings(String positionId) {
        return positionSharingMapper.getPositionSharings(positionId);
    }

    @Override
    public List<PositionSharing> getByPositionIds(List<String> positionIds) {
        return positionSharingMapper.getByPositionIds(positionIds);
    }

    @Override
    public List<PositionSharing> selectSharings(PositionSharing positionSharing) {
        return positionSharingMapper.selectSharings(positionSharing);
    }
}




